<template>
	<div id="app">
		{{msg}}
		<button type="button" @click="handleClick">显示隐藏</button>
		<slot></slot>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				msg:"锋子这个年龄段怎么睡得着觉的"
			}
		},
		methods:{
			handleClick(){
				this.$emit("myevent")
			}
		}
	}
</script>

<style scoped>
	#app{
		background-color: red;
	}
</style>
